Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 9 - Movie Data Exchange Components / Movie Data Exchange Components Reference
Configuring Movie Data Import Components /


MovieImportSetDuration

The MovieImportSetDuration function allows an application to control the duration of the data that your component pastes into the target movie.

pascal ComponentResult MovieImportSetDuration
                                    (ComponentInstance ci,
                                     TimeValue duration);
ci
Identifies the application's connection to your movie data import component.
duration
Specifies the duration in the movie's time scale. If this parameter is set
to 0, then you may paste any amount of movie data that is appropriate for the data to be imported.
DESCRIPTION
Applications may use the MovieImportSetDuration function to set the duration of the data to be pasted by your movie data import component. This duration is expressed in the movie's time scale.

If your component supports paste operations (that is, your component allows the application to set the movieImportInParallel flag to 1 with the MovieImportHandle or MovieImportFile function), then you must support this function. If an application calls this function and sets a duration limit, you must abide by that limit. This function is not valid for insert operations (where the movieImportInParallel flag is set to 0).

RESULT CODE
badComponentSelector0x80008002Function not supported

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help